
package com.hlkj.pay.dto;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import lombok.Data;

import java.util.List;

/**
 * @author HlpayTeam
 * @date 2024/12/04 18:10
 */
@Data
public class GaoDeGeoDto {

    /**
     * status : 1 info : OK infocode : 10000 count : 2 geocodes :
     * [{"formatted_address":"北京市朝阳区阜通东大街6号","country":"中国","province":"北京市","citycode":"010","city":"北京市","district":"朝阳区","township":[],"neighborhood":{"name":[],"type":[]},"building":{"name":[],"type":[]},"adcode":"110105","street":"阜通东大街","number":"6号","location":"116.482086,39.990496","level":"门址"},{"formatted_address":"北京市朝阳区阜通东大街6号院","country":"中国","province":"北京市","citycode":"010","city":"北京市","district":"朝阳区","township":[],"neighborhood":{"name":[],"type":[]},"building":{"name":[],"type":[]},"adcode":"110105","street":"阜通东大街","number":"6号院","location":"116.482145,39.990039","level":"门址"}]
     */

    private String status;

    private String info;

    private String infocode;

    private String count;

    /**
     * formatted_address : 北京市朝阳区阜通东大街6号 country : 中国 province : 北京市 citycode : 010
     * city : 北京市 district : 朝阳区 township : [] neighborhood : {"name":[],"type":[]}
     * building : {"name":[],"type":[]} adcode : 110105 street : 阜通东大街 number : 6号
     * location : 116.482086,39.990496 level : 门址
     */

    private List<GeocodesBean> geocodes;
    @Data
    public static class GeocodesBean {

        private String formatted_address;

        private String country;

        private String province;

        private String citycode;

        private String city;

        private String district;

        private NeighborhoodBean neighborhood;

        private BuildingBean building;

        private String adcode;

        private String street;

        private String number;

        private String location;

        private String level;

        private List<?> township;
        @Data
        public static class NeighborhoodBean {

            private List<?> name;

            private List<?> type;

        }

        @Data
        public static class BuildingBean {

            private List<?> name;

            private List<?> type;

        }
    }
}
